<?php

use Workerman\MySQL\Connection;

class Mysql
{
    public static ?Connection $db = null;

    /**
     * @return mixed
     */
    public static function getDb(): mixed
    {
        if (!self::$db) {
            self::$db  = new Connection('127.0.0.1', '3306',
                'xhelper_s', 'Mp3AZ35p4xSPD3t6', 'xhelper_s');
        }
        return self::$db;
    }
}